package core
{
	import alternativa.engine3d.materials.FillMaterial;
	import alternativa.engine3d.primitives.Box;
	
	public class Factory
	{
		static public function createSkybox():SkyBox
		{
			return  new SkyBox (
				new TextureLoadMaterial ("front.jpg"),
				new TextureLoadMaterial ("back.jpg"),
				new TextureLoadMaterial ("right.jpg"),
				new TextureLoadMaterial ("left.jpg"),
				new TextureLoadMaterial ("top.jpg"),
				new TextureLoadMaterial ("bottom.jpg"),180
			); 
		}
		
		static public function createPlayer():Player
		{
			
			return new Player();
		}
		
		static public function createCube():Box
		{
			var b:Box = new Box();
			b.cloneMaterialToAllSurfaces(new FillMaterial(0xFFFFFF,1,"normal",3,0x000099));
			return b;
		}
	}
}